package com.cxs.shopstore.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxs
 * @since 2021-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_car")
@ApiModel(value="Car对象", description="")
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物车id")
    @TableId(value = "car_id", type = IdType.ID_WORKER_STR)
    private String carId;

    @ApiModelProperty(value = "购物车用户外键")
    private String carUserId;

    @ApiModelProperty(value = "购物车商品外键")
    private String carGoodId;

    @ApiModelProperty(value = "商品数量")
    private Integer carNum;

    @ApiModelProperty(value = "加入购物车时间")
    private Long carCreateTime;

    @TableField(exist = false)
    private Good good;


}
